import request, {sign} from '@/utils/request';
const obj = {};

obj.addAndUpdate = function (data) {
  return request({
    url: `${sign}/setMeal/addAndUpdate`,
    method: 'post',
    data
  });
};

obj.delete = function (data) {
  return request({
    url: `${sign}/setMeal/delete`,
    method: 'post',
    data
  });
};

obj.list = function (params) {
  return request({
    url: `${sign}/setMeal/list`,
    method: 'get',
    params
  });
};

obj.selList = function (params) {
  return request({
    url: `${sign}/setMeal/addSetMealFunctionList`,
    method: 'get',
    params
  });
};
obj.listNotPage = function (params) {
  return request({
    url: `${sign}/setMeal/listNotPage`,
    method: 'get',
    params
  });
};
obj.deleteJudge = function (params) {
  return request({
    url: `${sign}/setMeal/deleteJudge`,
    method: 'get',
    params
  });
};

export default obj;
